package DP.strategy.calculate;

import DP.strategy.calculate.cal.Calculator;

/**
 * @author msi
 * 上下文
 */
public class Context {
    private Calculator calculator=null;

    public Context(Calculator calculator){
        this.calculator=calculator;
    }

    public int exec(int a,int b){
        return this.calculator.exec(a,b);
    }

}
